<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
{{assign var="title" value=$title|default:'创业信息管理'}}
{{assign var="app" value='info'}}
{{assign var="act" value='index'}}
{{assign var="table" value='datas'}}
{{assign var="td" value='10'}}
{{assign var="sex" value='sex'|C}}
<title>{{$title}}管理 - {{'admin|admin_site_name'|C|default:'后台管理'}}</title>
{{include file="include/base.html"}}
{{include file="{{$smarty.const.PLUG}}chosen/chosen.html"}}
{{include file="{{$smarty.const.PLUG}}drag/drag.html"}}
</head>
<body>

{{include file="include/sidebar.html"}}

<div class="body_right">
	<div id="content">
	
	<div class="search">
	<form action="index.php" name='search' class="router" method="get">
		<input type="hidden" name="app" value="{{$app}}"/>
		<input type="hidden" name="item" value="{{$smarty.get.item}}"/>
		<ul class="bread">
			<li class="floatr">
			</li>
			<li>
				id：<input type="text" class="input-mini" name="id" value="{{$smarty.get.id}}" />
			</li>
			<li>
				姓名：<input class="input-small" type="text" name="title" maxlength="50" value="{{$smarty.get.title}}" />
			</li>
			<li>
				<button type="submit" class="search btn btn-success"><i class="icon-search"></i>搜索</button>
				<a href="index.php?app={{$app}}&act={{$act}}{{if $smarty.get.item}}&item={{$smarty.get.item}}{{/if}}" class="a">清除</a>
			</li>
		</ul>
	</form>
	</div>

	<form name='form' action="index.php?app={{$app}}" method="post">
	<input type="hidden" name="app" value="{{$app}}"/>
	<input type="hidden" name="act" value=""/>
	<input type="hidden" name="table" value="{{$table}}"/>
	<table class="table table-bordered tablest drags saveorder" date="{{'table='|cat:$table|cat:'&field=ordering'|encode}}" >
		<tr class="thead">
			<td colspan="{{$td}}">
				<!-- <div class="floatr">
					<a class="btn iframe" href="index.php?app={{$app}}&act=modify&item={{$smarty.request.item}}{{if $smarty.get.tpl}}&tpl={{$smarty.get.tpl}}{{/if}}&iframe=true"><i class="icon-plus"></i>添加{{$title}}</a>
					<a class="delete btn btn-danger" href="javascript:"><i class="icon-trash icon-white"></i>批量删除</a>
				</div> -->
				◆ {{if !$smarty.get.item}}
				{{$title}}管理 －>
				{{/if}}
				{{$title}}列表
			</td>
		</tr>
		{{if !$result.data}}
		<tr class="noline"><td colspan="{{$td}}" class="result_empty"></td></tr>
		{{else}}
		<tr class="ttitle">
			<th width="35">ID</th>
			<th width="">学生姓名</th>
			<th width="35">性别</th>
			<th width="150">公司名称</th>
			<th width="100">指导老师</th>
			<th width="150">编辑时间</th>
			<th width="100">联系方式</th>
			<th width="80">操作</th>
		</tr>
		<tbody>
			{{foreach from=$result.data item=val key=key}}
			<tr class="drag">
				{{*ID*}}<td>{{$val.id}}<input name="ids[]" value="{{$val.id}}" type="hidden"/></td>
				{{*学生姓名*}}<td><a href="index.php?app={{$app}}&act=modify&id={{$val.id}}&table={{$smarty.get.table}}&iframe=true" class="a iframe">{{$val.username}}</a></td>
				{{*性别*}}<td>{{$sex[$val.params.sex_m]}}</td>
				{{*公司名称*}}<td>{{$val.params.company_name}}</td>
				{{*指导老师*}}<td>{{if $val.params.teacher.name_t}}{{$val.params.teacher.name_t}}{{else}}暂无指导老师{{/if}}</td>
				{{*编辑时间*}}<td>{{if $val.editdate}}{{$val.editdate}}{{else}}首次添加无编辑时间{{/if}}</td>
				{{*编辑时间*}}<td>{{$val.params.number}}</td>
				<td>
					<a href="index.php?app={{$app}}&act=modify&id={{$val.id}}&table={{$smarty.get.table}}&iframe=true" class="btn iframe"><i class="icon-edit"></i>编辑</a>
				</td>
			</tr>
			{{/foreach}}
			<tr class="thead">
			  <td colspan="{{$td}}">
				{{include file="include/page.html"}}
			  </td>
			</tr>
		</tbody>
		{{/if}}
	</table>
	</form>
</div>
</div>

</body>
</html>